/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.techhighteam675.robot2012;

import edu.wpi.first.wpilibj.image.ParticleAnalysisReport;

/**
 *
 * @author Lena
 */
class Target {
    
    public static final int TARGET_NONE = 0;
    public static final int TARGET_TOP = 1;
    public static final int TARGET_BOTTOM = 2;
    public static final int TARGET_LEFT = 3;
    public static final int TARGET_RIGHT = 4;
    
    public boolean initialized;
    public int targetSelection;
    public int position;
    public double distance;
    public double azimuth;
    public double cameraAngle;
    public double targetAngleWidth;
    public ParticleAnalysisReport report;
    
    public Target()
    {
        report = null;
	position = TARGET_BOTTOM;
	initialized = false;
	distance = azimuth = cameraAngle = -1;
    }

    void print()
    {
	switch (position)
	{
	case TARGET_LEFT:
		System.out.println("left: ");
	break;
	case TARGET_RIGHT:
		System.out.println("right: ");
	break;
	case TARGET_TOP:
		System.out.println("top: ");
	break;
	case TARGET_BOTTOM:
		System.out.println("bottom: ");
	break;
	
	default:
	break;
	}
		
	if(initialized) 
        {
		System.out.println("d: " +  distance + "az: " + Math.toDegrees(azimuth) +
				"taw" + Math.toDegrees(targetAngleWidth));
	}
	else {
		System.out.println("NOT SEEN\n");
	}
	
    }

}
